/**
 * 
 */
package br.srv.full.geoProcessing.entities.roads;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.Basic;

/**
 * @author carlos.pinheiro
 *
 */
@Entity
@Table(name="TipoDelegacao")
public class TipoDelegacao {

	@Id
	@Column(updatable = false, unique = true, insertable = false, nullable = false,length=2)
	private String codigo;
	
	
	/**
	 * @return the codigo
	 */
	public String getCodigo() {
		return this.codigo;
	}

	/**
	 * @param p_codigo the codigo to set
	 */
	public void setCodigo(String p_codigo) {
		this.codigo = p_codigo;
	}

	/**
	 * @return the descricao
	 */
	public String getDescricao() {
		return this.descricao;
	}

	/**
	 * @param p_descricao the descricao to set
	 */
	public void setDescricao(String p_descricao) {
		this.descricao = p_descricao;
	}

	/**
	 * @return the observacao
	 */
	public String getObservacao() {
		return this.observacao;
	}

	/**
	 * @param p_observacao the observacao to set
	 */
	public void setObservacao(String p_observacao) {
		this.observacao = p_observacao;
	}

	@Column(insertable=false, updatable = false, unique = true, nullable = false)
	@Basic(optional=false)
	private String descricao;
	
	@Basic(optional=true)
	@Column(unique=false, updatable = false, insertable = false)
	private String observacao;
}
